package com.itheima_11;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class test_11_1 {
    public static void main(String[] args) {
        List<String> list=new ArrayList();
        list.add("gfggf");
        list.add("fgf2g");
        list.add("fgghv");
        list.add("d25fg");
        for (int i = 0; i < list.size(); i++) {
            char[] chars = list.get(i).toCharArray();
            for (int j = 0; j < chars.length; j++) {
                if('0'<=chars[j]&&'9'>=chars[j]){
                    list.remove(i);
                    i--;
                    //list.get(i)
                    break;
                }
            }
        }
        Iterator<String> it = list.iterator();
        while (it.hasNext()){
            String next = it.next();
            System.out.println(next);
        }
    }
}

